<?php
$smarty->template_dir = 'components/settings/templates/';
$smarty->compile_dir = 'components/settings/templates_c/';
include("settings_functions.php");
$user = getUser($_SESSION["user_id"]);
$group = getGroup($user["group_id"]);
$groups = getGroupsList($group["faculty_id"]);
$faculties = getFacultiesList();

$smarty->assign("user",$user);
$smarty->assign("group",$group);
$smarty->assign("groups",$groups);
$smarty->assign("faculties",$faculties);
$smarty->assign("component","settings");
$smarty->assign("title","User Settings");
$smarty->display("settings.tpl");
?>